package com.xy.annotaion.handler.initializing;

import com.xy.annotaion.handler.annotation.TestLog;
import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

import javax.annotation.Resource;

/**
 * @author Dell
 */
@Component
public class TestInitializingBeanImpl implements InitializingBean, LogService {
    @Resource
    private RequestMappingHandlerMapping requestMappingHandlerMapping;

    @Override
    @TestLog
    public void afterPropertiesSet() throws Exception {
        log(requestMappingHandlerMapping);
    }
}
